﻿using System;

namespace Itau.IM.Common.Mainframe.Book
{
    [AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
    public sealed class BookStringFieldAttribute : BookFieldBaseAttribute
    {
        public char FillerChar { get; set; }
        public int Length { get; set; }
        
        public BookStringFieldAttribute(int StartIndex, int Length, char FillerChar): this(StartIndex, Length)
        {
            this.FillerChar = FillerChar;
        }

        public BookStringFieldAttribute(int StartIndex, int Length) : base(StartIndex)
        {
            this.Length = Length;
            this.FillerChar = ' ';
        }

        public BookStringFieldAttribute() : base(0) { }

    }
}
